<header class="yifang-header">
    <div class="header-wrapper yifang-wrap">
        {php $siteLogo = siteSetting('siteLogo',''); }
        <div class="logo">
            <a href="/">
                {if data("cms.info.seller_id") }
                    <img style="width: 46px;" src="{if $siteLogo }{$siteLogo}{else}{data('cms.info.web_logo','')}{/if}" alt="">
                {else}
                    <img style="width: 46px;" src="{if $siteLogo }{$siteLogo}{else}__INDEX_STATIC__/default/img/YiFangCMS.png{/if}" alt="">
                {/if}
            </a>
        </div>
        <div class="topbar">
            <ul class="topbar-left">
                <li class="menu1"><a href="/"  {if !isset($request['moduleId']) && !isset($request['plugins'])} class='active2' {/if} ><span>首页</span></a></li>
                {YiFang:models }
                <li><a href="{$field['linkUrl']}" {if (isset($request['moduleId']) && $request['moduleId']==$field['id']) || (isset($request['plugins']) && $request['plugins']==$field['plugins'])} class='active2' {/if}  target="{$field['isBlank']?'_blank':'_self'}" ><span>{$field["name"]}</span></a></li>
                {/YiFang:models}
            </ul>
            <!--{if session()->get(configPlugin("yifang_member.app.oauth.guid"))}-->
            <!--<a href="/member" id="nickname" guid="{session()->get(configPlugin('yifang_member.app.oauth.guid'))}">{session()->get(configPlugin("yifang_member.app.oauth.nickname"))}</a>-->
            <!--{else}-->
            <!--<div class="topbar-right">-->
                <!--<a href="/oauth/login">登录</a>-->
                <!--<a href="/oauth/register">注册</a>-->
            <!--</div>-->
            <!--{/if}-->
        </div>
        <div class="nav-menu">
            <img class="list" src="__INDEX_STATIC__/default/img/list.png" alt="">
            <img class="close" src="__INDEX_STATIC__/default/img/close.png" alt="">
        </div>
    </div>
</header>